import react from 'react'
import Home from './components/Home'
import About from './components/About'
class App extends react.Component {
  constructor() {
    super()
    console.log('这是constructor')
  }
  UNSAFE_componentWillMount() {
    console.log('组件将要渲染了')
  }
  render() {
    console.log('进入render函数')
    return (
      <div className="App">
          <Home />
          <About/>
      </div>
    );
  }
  componentDidMount() {
    console.log('组件渲染完成了')
  }
  componentWillUnmount() {
    console.log('组件将要卸载的生命周期')
  }
}
export default App;
